<?php
/**
 * CreateUser: zlh
 * CreateTime: 2022/2/7 14:28
 * Remark:
 */

namespace App\Http\Requests\Client;

use App\Http\Requests\BaseRequests;

class AddEnterprisePost extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'client_credit_code' =>"required|size:18",
        ];
    }

    public function messages()
    {
        return [
            'client_credit_code.required' => "统一社会信用代码不能为空",
        ];
    }
}
